package com.term.domain.enums;

/**
 * Created by Administrator on 2017/1/5.
 */
public enum  BooleanEnums implements BaseEnum<BooleanEnums,String>{

    /** TRUE. */
    T( "T", "TRUE" ),

    /** FALSE. */
    F( "F", "FALSE" )
    ;

    private final String value;
    private final String displayName;
    private static java.util.Map<String, BooleanEnums> valueMap = new java.util.HashMap<>();

    static {
        for ( BooleanEnums e : BooleanEnums.values() ) {
            valueMap.put( e.value, e );
        }
    }

    BooleanEnums( String value, String displayName ) {
        this.value = value;
        this.displayName = displayName;
    }

    @Override
    public BooleanEnums getEnum(String value ) {
        return valueMap.get( value );
    }

    @Override
    public java.util.Map<String, BooleanEnums> getAllValueMap() {
        return valueMap;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public String getDisplayName() {
        return displayName;
    }
}
